package test02.function.demo04;

/**
 * @author ZJL
 * @date 2025-04-02
 */
public class MainTest {
    public static void main(String[] args) {
//        InterfaceTest it = ()->{
//            System.out.println("函数式接口抽象方法的实现");
//        };
        // test(String name)
        InterfaceTest it = name -> {
            System.out.println("你好，" + name);
            return "好好学习";
        };
        System.out.println(it.test("张三"));
    }
}
